package com.sca.bussiness.feign;

import com.sca.bussiness.entity.api.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liuxianfei
 * @since 2020/11/13 17:00
 */
@FeignClient("order-service")
public interface OrderFeignClient {

    @PostMapping("/order/v1/add")
    BaseResult<?> addOrder(@RequestParam Integer userId, @RequestParam Long goodId, @RequestParam Integer num);

}
